<?php

namespace app\api\controller;

use app\common\controller\Api;

class Information extends Api
{
    protected $noNeedLogin = [''];
    protected $noNeedRight = ['*'];

    public function faceEvents()
    {
        $param = $this->request->param();
        $url="/nsj9201/security/faceEvents";
        $urlse=$this->Monitor_url($url);
        $data=json_encode($param, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
        $response=$this->curl_data($urlse,$data);
        //好了这里处理完成 要 返回给前端了
        $this->success('',$response);
    }
    public function plateEvents()
    {
        $param = $this->request->param();
        $url="/nsj9201/security/plateEvents";
        $urlse=$this->Monitor_url($url);
        $data=json_encode($param, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
        $response=$this->curl_data($urlse,$data);
        //好了这里处理完成 要 返回给前端了
        $this->success('',$response);
    }
    public function detectAlarms()
    {
        $param = $this->request->param();
        $url="/nsj9201/security/detectAlarms";
        $urlse=$this->Monitor_url($url);
        $data=json_encode($param, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
        $response=$this->curl_data($urlse,$data);
        //好了这里处理完成 要 返回给前端了
        $this->success('',$response);
    }
    public function environment()
    {
        $param = $this->request->param();
        $url="/nsj9201/weather/environment-data";
        $urlse=$this->Monitor_url($url);
        $response=$this->curl_data($urlse);
        //好了这里处理完成 要 返回给前端了
        $this->success('',$response);
    }
    public function faceEventStats()
    {
        $param = $this->request->param();
        $url="/nsj9201/security/faceEventStats";
        $urlse=$this->Monitor_url($url);
        $data=json_encode($param, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
        $response=$this->curl_data($urlse,$data);
        //好了这里处理完成 要 返回给前端了
        $this->success('',$response);
    }
    public function plateEventStats()
    {
        $param = $this->request->param();
        $url="/nsj9201/security/plateEventStats";
        $urlse=$this->Monitor_url($url);
        $data=json_encode($param, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
        $response=$this->curl_data($urlse,$data);
        //好了这里处理完成 要 返回给前端了
        $this->success('',$response);
    }
    public function detectAlarmStats()
    {
        $param = $this->request->param();
        $url="/nsj9201/security/detectAlarmStats";
        $urlse=$this->Monitor_url($url);
        $data=json_encode($param, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
        $response=$this->curl_data($urlse,$data);
        //好了这里处理完成 要 返回给前端了
        $this->success('',$response);
    }
}
